import time

from celery_tasks.main import app
from libs.yuntongxun.sms import CCP

@app.task
def send_sms_code_ccp(mobile, sms_code):

    result = CCP().send_template_sms(mobile, [sms_code, 5], 1)

    print(sms_code)
    # time.sleep(5)

    return result